/*
 *  Brno University of Technology
 *
 *  Copyright (C) 2009-2010 by Brno University of Technology and the contributors
 *
 *  Complete list of developers available at our web site:
 *
 *       http://spl.utko.feec.vutbr.cz
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/.
 */
package cz.vutbr.feec.utko.ef.individuals;

import cz.vutbr.feec.utko.ef.grammar.Rule;

/**
 * The Class MutableRule is used for a special type of terminal or nonterminal
 * nodes, which can be mutated. The regular nodes lack of possibility to be
 * mutated directly at node level. This drawback can be overcome with
 * implementing this class and evolution core will have an ability to not only
 * at nonterminal level but also at terminal level.
 */
public abstract class MutableRule extends Rule {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 4204460805257663668L;
	
	/**
	 * Instantiates a new mutable rule.
	 * 
	 * @param action
	 *            the action
	 * @param childTokens
	 *            the child tokens
	 */
	public MutableRule(ActionTree action, String[] childTokens) {
		super(action, childTokens);
	}

	/**
	 * Mutate the terminal in a special way defined by this terminal.
	 */
	public abstract void mutate();
}
